#####Hungary Major Events######
#By Joakim 'Greven' Bergqwist #
#   Hvard Moe                #
#   Tom 'Demetrios' Rinschler #
###############################


#Religious Rebellion#
event = {

	id = 3641
	random = no
	country = HUN
	name = "EVENTNAME3641"
	desc = "EVENTHIST3641"
	style = 3

	date = { day = 1 month = january year = 1604 }
	offset = 30
	deathdate = { day = 1 month = january year = 1605 }

	action_a ={				#Fight for the cause of the Reformed Faith#
		name = "ACTIONNAME3641A"
		command = { type = revoltrisk which = 36 value = 6 }
		command = { type = religion which = reformed }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = relation which = HAB value = -100 }
		command = { type = relation which = PAP value = -100 }
		command = { type = relation which = SPA value = -100 }
		command = { type = relation which = SWE value = 100 }
		command = { type = relation which = LIT value = 100 }
		command = { type = relation which = PRU value = 100 }
		command = { type = relation which = DAN value = 100 }
		command = { type = relation which = HOL value = 100 }
		command = { type = domestic which = INNOVATIVE value = 2 }
		command = { type = stability value = -2 }
	}

	action_b ={				#Fight for the cause of the Catholic Faith#
		name = "ACTIONNAME3641B"
		command = { type = revoltrisk which = 36 value = 6 }
		command = { type = religion which = counterreform }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = desertion which = -1 value = 5000 }
		command = { type = relation which = HAB value = 100 }
		command = { type = relation which = PAP value = 100 }
		command = { type = relation which = SPA value = 100 }
		command = { type = relation which = SWE value = -100 }
		command = { type = relation which = ENG value = -100 }
		command = { type = relation which = PRU value = -100 }
		command = { type = relation which = DAN value = -100 }
		command = { type = relation which = HOL value = -100 }
		command = { type = domestic which = INNOVATIVE value = -2 }
		command = { type = stability value = -2 }
	}
}

# The Council of Florence and the Union of the Churches
event = { 
	id = 3835
	
	# Triggered by BYZ 3833
	
	random = no
	country = HUN
	name = "EVENTNAME3835"
	desc = "EVENTHIST3835"
	style = 1 
	
	action_a ={ #Gain CB on Ottomans#
		name = "ACTIONNAME3835A"
		command = { type = casusbelli which = TUR value = 60 }
	}
}

# The Death of King Vaclav IV
event = {
	id = 3851		# Triggered from BOH3801
	random = no
	country = HUN
	name = "EVENTNAME3851"
	desc = "EVENTHIST3851"
	style = 1

	action_a ={ # They reject!
		name = "ACTIONNAME3851A"
		command = { type = casusbelli which = BOH value = 215 }
	}
}

########################
#New events for Hungary#
#        AlanC9        #
#    chegitz guevara   #
#       Praetor        #
########################

# Suleyman demands the Submission of Hungary #
event = { 
	id = 19009
	random = no
	country = HUN
	name = "EVENTNAME19009"
	desc = "EVENTHIST19009"
	style = 2

	action_a ={ 
		name = "ACTIONNAME19009A"
		command = { type = trigger which = 120003 } 
		command = { type = relation which = TUR value = -100 } 
} 

	action_b ={ 
		name = "ACTIONNAME19009B" 
		command = { type = relation  which = HAB  value = -50 } 
		command = { type = relation  which = PAP  value = -50 } 
		command = { type = relation  which = TUR  value = 100 }
		command = { type = stability  value = -4 } 
		command = { type = trigger  which = 19011 } 
		command = { type = sleepevent  which = 19010 } 
	} 
}

# The Invasion of Hungary
event = { 
	id = 19013 
	trigger = {
		event = 19010
	     }
	random = no 
	country = HUN 
	name = "EVENTNAME19013" 
	desc = "EVENTHIST19013"
	style = 2 
	date = { day = 22 month = august year = 1526 } 
	offset = 0 
	deathdate = { day = 22 month = August year = 1526 }

	action_a ={ 
		name = "ACTIONNAME19013A" 
		command = { type = trigger  which = 19014 } #Battle of Mohacs
		command = { type = secedeprovince  which = TUR  value = 355 } #Serbia
        }

	action_b ={ 
		name = "ACTIONNAME19013B" 
		command = { type = relation  which = HAB  value = -100 } 
		command = { type = relation  which = PAP  value = -50 } 
		command = { type = relation  which = SPA  value = -50 }
		command = { type = relation  which = CAS  value = -50 } #In case Spain never formed
		command = { type = relation  which = TUR  value = 100 }
		command = { type = stability value = -4 } 
		command = { type = secedeprovince  which = TUR  value = 355 }#Serbia
		command = { type = trigger  which = 19011 } #Lajos submits to Suleyman
        }
}

# The Battle of Mohacs
event = { 
	id = 19014
	random = no 
	country = HUN 
	name = "EVENTNAME19014"
	desc = "EVENTHIST19014"
	style = 2

	action_a ={ 
		name = "ACTIONNAME19014A"
		command = { type = stability  value = -4 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = desertion  which = -1  value = 5000 }
		command = { type = trigger  which = 19016 } # Electing a new King
		command = {type = trigger  which = 3642} # Election of the King of Bohemia
        }
}

# The Assassination of Lajos II
event = {
	id = 19015
	trigger = {
		event = 19011
	}
	random = no
	country = HUN
	name = "EVENTNAME19015"
	desc = "EVENTHIST19015"
	style = 2
	date =  { day = 22 month = August year = 1526 }
	offset = 0 
	deathdate = { day = 23 month = August year = 1526 }

	action_a ={				#Down with the King!#
		name = "ACTIONNAME19015A"
		command = { type = stability  value = -2 }
		command = { type = trigger  which = 19017 } # Electing a new King
		command = {type = trigger  which = 3642} # Election of the King of Bohemia
	}
}


#The Battle of Mohacs, pt II
event = {
	id = 19016				#triggered by 120007
	random = no
	country = HUN
	name = "EVENTNAME19016"
	desc = "EVENTHIST19016"
	style = 2

	action_a ={ #Elect Jnos Zpolya of Transylvania#
		name = "ACTIONNAME19016A"
		command = { type = stability  value = -4 }
		command = { type = secedeprovince  which = HAB  value = 326 } #Oldenburg
		command = { type = secedeprovince  which = HAB  value = 352 } #Pressburg
		command = { type = secedeprovince  which = HAB  value = 367 } #Krain
		command = { type = relation  which = TUR  value = 150 }  
		command = { type = alliance  which = TUR }
		command = { type = trigger  which = 3186 }
        }

	action_b ={ #Elect Ferdinand Habsburg of Austria#
		name = "ACTIONNAME3639B"
		command = { type = dynastic  which = HAB }
		command = { type = alliance  which = HAB }
		command = { type = relation  which = HAB  value = 200 } 
		command = { type = stability  value = -4 }
		command = { type = secedeprovince  which = TUR  value = 317 } #Ruthenia
		command = { type = secedeprovince  which = TUR  value = 323 } #Transylvania
		command = { type = secedeprovince  which = TUR  value = 354 } #Banat
		command = { type = secedeprovince  which = TUR  value = 362 } #Ragusa
		command = { type = secedeprovince  which = TUR  value = 364 } #Bosnia
		command = { type = secedeprovince  which = TUR  value = 365 } #Dalmatia
		command = { type = secedeprovince  which = TUR  value = 366 } #Croatia
		command = { type = trigger  which = 3185 }
		command = { type = trigger  which = 19018 }
		command = { type = trigger  which = 19023 }
      }
}

#Electing a New King#
event = {
	id = 19017 #triggered by 19015
	random = no
	country = HUN
	name = "EVENTNAME19016"
	desc = "EVENTHIST19017"
	style = 2

	action_a ={ #Elect Jnos Zpolya of Transylvania#
		name = "ACTIONNAME19016A"
		command = { type = stability  value = -4 }
		command = { type = relation  which = TUR  value = 150 }  
		command = { type = secedeprovince  which = HAB  value = 326 } #Pressburg
		command = { type = secedeprovince  which = HAB  value = 352 } #Oldenburg
		command = { type = secedeprovince  which = HAB  value = 367 } #Krain
		command = { type = trigger  which = 3186 }
    }

	action_b ={ #Elect Ferdinand Hapsburg of Austria#
		name = "ACTIONNAME19016B"
		command = { type = breakvassal  which = TUR }
		command = { type = dynastic  which = HAB }
		command = { type = alliance  which = HAB }
		command = { type = stability  value = -4 }
		command = { type = trigger  which = 3185 }
		command = { type = trigger  which = 19018 }
		command = { type = trigger  which = 19023 }
      }
}



#The Death of King Lajos of Hungary# 
event = { 
	id = 19025 
	trigger = { 
		exists = HAB 
		NOT = { event = 19009 } 
	} 
	random = no 
	country = HUN 
	name = "EVENTNAME19025" 
	desc = "EVENTHIST19025"
	style = 2 
	date =  { day = 22 month = August year = 1526 }
	offset = 0 
	deathdate = { day = 22 month = August year = 1526 }


	action_a ={ 
		name = "ACTIONNAME19016A" 
		command = { type = trigger  which = 3732 } 
		command = { type = revolt  which = -1} 
		command = { type = revolt  which = -1} 
		command = { type = revolt  which = -1} 
		command = { type = stability  value = -4 } 
		command = { type = revoltrisk  which = 72 value = 1 } 
		command = { type = revoltrisk  which = 60 value = 1 } 
		command = { type = revoltrisk  which = 48 value = 1 } 
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = domestic  which = CENTRALIZATION  value = -2 } 
		command = { type = domestic  which = ARISTOCRACY  value = 1 } 
		command = { type = relation  which = SPA  value = -150 } 
		command = { type = relation  which = HAB  value = -150 } 
		command = { type = relation  which = ENG  value = -150 } 
		command = { type = relation  which = PAP  value = -150 } 
		command = { type = relation  which = FRA  value = 150 } 
		command = { type = relation  which = POL  value = 150 } 
		command = { type = relation  which = TUR  value = 150 } 
		command = { type = trigger  which = 19026 }
	} 

	action_b ={ 
		name = "ACTIONNAME19016B" 
		command = { type = dynastic  which = HAB } 
		command = { type = alliance  which = HAB } 
		command = { type = relation  which = HAB  value = 200 } 
		command = { type = stability  value = -2 } 
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = revolt   which = -1 }
		command = { type = revolt   which = -1 } 
		command = { type = trigger  which = 3185 } 
		command = { type = trigger  which = 19018 }
	} 
}

#The Death of Jnos Zpolya# 
event = { 
	id = 19020 #triggered from 19019 
	random = no 
	country = HUN
	name = "EVENTNAME19019" 
	desc = "EVENTHIST19020"
	style = 2 

	action_a ={ #We have lost much#
		name = "ACTIONNAME19020A" 
		command = { type = capital  which = 323}
		command = { type = secedeprovince  which = HAB  value = 316 } #Carpathia
		command = { type = secedeprovince  which = TUR  value = 325 } #Magyar
		command = { type = secedeprovince  which = TUR  value = 353 } #Pest
		command = { type = secedeprovince  which = TUR  value = 354 } #Banat
		command = { type = secedeprovince  which = TUR  value = 362 } #Ragusa
		command = { type = secedeprovince  which = TUR  value = 364 } #Bosnia
		command = { type = secedeprovince  which = TUR  value = 365 } #Dalmatia
		command = { type = secedeprovince  which = TUR  value = 366 } #Croatia
		command = { type = add_countryculture which = romanian }
		command = { type = country  which = SIE }
	} 
}

#The Death of Jnos Zpolya#
event = {
	id = 19024
	trigger = {
		NOT = {
			vassal = { country = TUR  country = HUN }
			vassal = { country = HAB  country = HUN }
		}
	}
	random = no
	country = HUN
	name = "EVENTNAME19019"
	desc = "EVENTHIST19024"
	style = 2 
	date = { day = 23 month = july year = 1540 } 
	offset = 0 
	deathdate = { day = 24  month = july  year = 1540 } 

	action_a ={ #Elect Jnos Sigusmund Zpolya#
		name = "ACTIONNAME19016A"
		command = { type = stability  value = -4 }
		command = { type = revolt  which = -1 }
		command = { type = revolt  which = -1 }
		command = { type = revolt  which = -1 } 
		command = { type = revoltrisk  which = 72 value = 1 } 
		command = { type = revoltrisk  which = 60 value = 1 } 
		command = { type = revoltrisk  which = 48 value = 1 } 
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = trigger  which = 19026 }
    }

	action_b ={ #Elect Ferdinand Hapsburg of Austria#
		name = "ACTIONNAME19016B"
		command = { type = dynastic  which = HAB }
		command = { type = alliance  which = HAB }
		command = { type = relation  which = HAB  value = 200 } 
		command = { type = stability  value = -2 }
		command = { type = revolt  which = -1 }
		command = { type = revolt  which = -1 }
		command = { type = revoltrisk  which = 36 value = 1 } 
		command = { type = revoltrisk  which = 24 value = 1 } 
		command = { type = revoltrisk  which = 12 value = 1 }
		command = { type = trigger  which = 3185 }
		command = { type = trigger  which = 19018 }
		command = { type = trigger  which = 19023 }
      }
}

event = { 
	id = 19018
	random = no 
	country = HUN 
	name = "EVENTNAME19018"
	desc = "EVENTHIST19018"
	style = 2 
	action_a ={ #Putting all the monarch changes in one file instead of three. # 
		name = "ACTIONNAME19018A" 
		command = { type = trigger which = 3185 } 
		command = { type = wakemonarch which = 06268 } 
		command = { type = wakemonarch which = 06269 } 
		command = { type = wakemonarch which = 06270 } 
		command = { type = wakemonarch which = 06271 } 
		command = { type = wakemonarch which = 06272 } 
		command = { type = wakemonarch which = 06273 } 
		command = { type = wakemonarch which = 06274 } 
		command = { type = wakemonarch which = 06275 } 
		command = { type = wakemonarch which = 06276 } 
		command = { type = wakemonarch which = 06277 } 
		command = { type = wakemonarch which = 06278 } 
		command = { type = wakemonarch which = 06279 } 
		command = { type = wakemonarch which = 06280 } 
		command = { type = sleepmonarch which = 06267 } 
		command = { type = sleepmonarch which = 06284 } 
		command = { type = sleepmonarch which = 06285 } 
		command = { type = sleepmonarch which = 06286 } 
		command = { type = sleepmonarch which = 06287 } 
		command = { type = sleepmonarch which = 06288 } 
		command = { type = sleepmonarch which = 06289 } 
		command = { type = sleepmonarch which = 06290 } 
		command = { type = sleepmonarch which = 06291 } 
		command = { type = sleepmonarch which = 06292 } 
		command = { type = sleepmonarch which = 06293 } 
		command = { type = sleepmonarch which = 06294 } 
		command = { type = sleepmonarch which = 06295 } 
		command = { type = sleepmonarch which = 06296 } 
		command = { type = sleepmonarch which = 06297 } 
		command = { type = sleepmonarch which = 06298 } 
		} 
}

